#include "vector_util.h"

GLfloat normalize(GLfloat& x, GLfloat& y, GLfloat& z) {
    GLfloat mag = sqrt(x*x + y*y + z*z);
    x /= mag;
    y /= mag;
    z /= mag;
    return mag;
}

GLfloat dot(GLfloat x0, GLfloat y0, GLfloat z0, GLfloat x1, GLfloat y1, GLfloat z1) {
    return x0 * x1 + y0 * y1 + z0 * z1;
}
